3.47 \(\int x^m \cosh (a+b x^n) \, dx\)

Optimal. Leaf size=89 \[ -\frac{e^a x^{m+1} \left (-b x^n\right )^{-\frac{m+1}{n}} \text{Gamma}\left (\frac{m+1}{n},-b x^n\right )}{2 n}-\frac{e^{-a} x^{m+1} \left (b x^n\right )^{-\frac{m+1}{n}} \text{Gamma}\left (\frac{m+1}{n},b x^n\right )}{2 n} \]

[Out]

-(E^a*x^(1 + m)*Gamma[(1 + m)/n, -(b*x^n)])/(2*n*(-(b*x^n))^((1 + m)/n)) - (x^(1 + m)*Gamma[(1 + m)/n, b*x^n])
/(2*E^a*n*(b*x^n)^((1 + m)/n))

________________________________________________________________________________________

Rubi [A]  time = 0.0695113, antiderivative size = 89, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {5361, 2218} \[ -\frac{e^a x^{m+1} \left (-b x^n\right )^{-\frac{m+1}{n}} \text{Gamma}\left (\frac{m+1}{n},-b x^n\right )}{2 n}-\frac{e^{-a} x^{m+1} \left (b x^n\right )^{-\frac{m+1}{n}} \text{Gamma}\left (\frac{m+1}{n},b x^n\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Int[x^m*Cosh[a + b*x^n],x]

[Out]

-(E^a*x^(1 + m)*Gamma[(1 + m)/n, -(b*x^n)])/(2*n*(-(b*x^n))^((1 + m)/n)) - (x^(1 + m)*Gamma[(1 + m)/n, b*x^n])
/(2*E^a*n*(b*x^n)^((1 + m)/n))

Rule 5361

Int[Cosh[(c_.) + (d_.)*(x_)^(n_)]*((e_.)*(x_))^(m_.), x_Symbol] :> Dist[1/2, Int[(e*x)^m*E^(c + d*x^n), x], x]
 + Dist[1/2, Int[(e*x)^m*E^(-c - d*x^n), x], x] /; FreeQ[{c, d, e, m, n}, x]

Rule 2218

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^(n_))*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> -Simp[(F^a*(e + f*
x)^(m + 1)*Gamma[(m + 1)/n, -(b*(c + d*x)^n*Log[F])])/(f*n*(-(b*(c + d*x)^n*Log[F]))^((m + 1)/n)), x] /; FreeQ
[{F, a, b, c, d, e, f, m, n}, x] && EqQ[d*e - c*f, 0]

Rubi steps

\begin{align*} \int x^m \cosh \left (a+b x^n\right ) \, dx &=\frac{1}{2} \int e^{-a-b x^n} x^m \, dx+\frac{1}{2} \int e^{a+b x^n} x^m \, dx\\ &=-\frac{e^a x^{1+m} \left (-b x^n\right )^{-\frac{1+m}{n}} \Gamma \left (\frac{1+m}{n},-b x^n\right )}{2 n}-\frac{e^{-a} x^{1+m} \left (b x^n\right )^{-\frac{1+m}{n}} \Gamma \left (\frac{1+m}{n},b x^n\right )}{2 n}\\ \end{align*}

Mathematica [A]  time = 0.163619, size = 100, normalized size = 1.12 \[ -\frac{x^{m+1} \left (-b^2 x^{2 n}\right )^{-\frac{m+1}{n}} \left ((\cosh (a)-\sinh (a)) \left (-b x^n\right )^{\frac{m+1}{n}} \text{Gamma}\left (\frac{m+1}{n},b x^n\right )+(\sinh (a)+\cosh (a)) \left (b x^n\right )^{\frac{m+1}{n}} \text{Gamma}\left (\frac{m+1}{n},-b x^n\right )\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^m*Cosh[a + b*x^n],x]

[Out]

-(x^(1 + m)*((-(b*x^n))^((1 + m)/n)*Gamma[(1 + m)/n, b*x^n]*(Cosh[a] - Sinh[a]) + (b*x^n)^((1 + m)/n)*Gamma[(1
 + m)/n, -(b*x^n)]*(Cosh[a] + Sinh[a])))/(2*n*(-(b^2*x^(2*n)))^((1 + m)/n))

________________________________________________________________________________________

Maple [C]  time = 0.102, size = 110, normalized size = 1.2 \begin{align*}{\frac{{x}^{1+m}\cosh \left ( a \right ) }{1+m}{\mbox{$_1$F$_2$}({\frac{m}{2\,n}}+{\frac{1}{2\,n}};\,{\frac{1}{2}},1+{\frac{m}{2\,n}}+{\frac{1}{2\,n}};\,{\frac{{x}^{2\,n}{b}^{2}}{4}})}}+{\frac{{x}^{m+n+1}b\sinh \left ( a \right ) }{m+n+1}{\mbox{$_1$F$_2$}({\frac{1}{2}}+{\frac{m}{2\,n}}+{\frac{1}{2\,n}};\,{\frac{3}{2}},{\frac{3}{2}}+{\frac{m}{2\,n}}+{\frac{1}{2\,n}};\,{\frac{{x}^{2\,n}{b}^{2}}{4}})}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^m*cosh(a+b*x^n),x)

[Out]

1/(1+m)*x^(1+m)*hypergeom([1/2/n*m+1/2/n],[1/2,1+1/2/n*m+1/2/n],1/4*x^(2*n)*b^2)*cosh(a)+1/(m+n+1)*x^(m+n+1)*b
*hypergeom([1/2+1/2/n*m+1/2/n],[3/2,3/2+1/2/n*m+1/2/n],1/4*x^(2*n)*b^2)*sinh(a)

________________________________________________________________________________________

Maxima [A]  time = 1.28248, size = 115, normalized size = 1.29 \begin{align*} -\frac{x^{m + 1} e^{\left (-a\right )} \Gamma \left (\frac{m + 1}{n}, b x^{n}\right )}{2 \, \left (b x^{n}\right )^{\frac{m + 1}{n}} n} - \frac{x^{m + 1} e^{a} \Gamma \left (\frac{m + 1}{n}, -b x^{n}\right )}{2 \, \left (-b x^{n}\right )^{\frac{m + 1}{n}} n} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*cosh(a+b*x^n),x, algorithm="maxima")

[Out]

-1/2*x^(m + 1)*e^(-a)*gamma((m + 1)/n, b*x^n)/((b*x^n)^((m + 1)/n)*n) - 1/2*x^(m + 1)*e^a*gamma((m + 1)/n, -b*
x^n)/((-b*x^n)^((m + 1)/n)*n)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (x^{m} \cosh \left (b x^{n} + a\right ), x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*cosh(a+b*x^n),x, algorithm="fricas")

[Out]

integral(x^m*cosh(b*x^n + a), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{m} \cosh{\left (a + b x^{n} \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**m*cosh(a+b*x**n),x)

[Out]

Integral(x**m*cosh(a + b*x**n), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{m} \cosh \left (b x^{n} + a\right )\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^m*cosh(a+b*x^n),x, algorithm="giac")

[Out]

integrate(x^m*cosh(b*x^n + a), x)